package com.briup.pts.mapper;

import com.briup.pts.entity.ManagerAnimal;
import com.briup.pts.entity.ManagerAnimalExample;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface ManagerAnimalMapper {
    // 统计出动物各个体重区间的动物数量在首页大屏进行展示。
    Map<String, Integer> countWeight();
    long countByExample(ManagerAnimalExample example);

    int deleteByExample(ManagerAnimalExample example);

    int deleteByPrimaryKey(String aAnimalId);

    int insert(ManagerAnimal record);

    int insertSelective(ManagerAnimal record);

    List<ManagerAnimal> selectByExample(ManagerAnimalExample example);

    ManagerAnimal selectByPrimaryKey(String aAnimalId);

    int updateByExampleSelective(@Param("record") ManagerAnimal record, @Param("example") ManagerAnimalExample example);

    int updateByExample(@Param("record") ManagerAnimal record, @Param("example") ManagerAnimalExample example);

    int updateByPrimaryKeySelective(ManagerAnimal record);

    int updateByPrimaryKey(ManagerAnimal record);

    int updateAHealthyByAAnimalId(@Param("aHealthy") String aHealthy,
                                  @Param("aAnimalId") String aAnimalId);
}